package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.domain.Administrator;
import com.example.mapper.AdministratorMapper;
import com.example.service.AdministratorService;
import org.springframework.stereotype.Service;

/**
 * @author 惠普
 * @description 针对表【administrator】的数据库操作Service实现
 * @createDate 2022-09-27 15:05:30
 */
@Service
public class AdministratorServiceImpl extends ServiceImpl<AdministratorMapper, Administrator>
		implements AdministratorService {

	@Override
	public Administrator getByAdminId(String adminId) {
		return baseMapper.selectOne(new QueryWrapper<Administrator>().eq("administrator_id", adminId));
	}
}



